import request from '@/utils/request'

export function listLeaseBills(query) {
  return request({
    url: '/system/houseLease/bills/list',
    method: 'get',
    params: query
  })
}

export function getLeaseBill(billId) {
  return request({
    url: `/system/houseLease/bills/${billId}`,
    method: 'get'
  })
}

export function createLeaseBill(data) {
  return request({
    url: '/system/houseLease/bills',
    method: 'post',
    data
  })
}

export function updateLeaseBill(billId, data) {
  return request({
    url: `/system/houseLease/bills/${billId}`,
    method: 'put',
    data
  })
}

export function changeLeaseBillStatus(billId, data) {
  return request({
    url: `/system/houseLease/bills/${billId}/status`,
    method: 'put',
    data
  })
}

export function deleteLeaseBills(billIds) {
  return request({
    url: `/system/houseLease/bills/${billIds}`,
    method: 'delete'
  })
}
